Optimal. Leaf size=45 \[ -\frac{b (c d-b e) \log (b+c x)}{c^3}+\frac{x (c d-b e)}{c^2}+\frac{e x^2}{2 c} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0802037, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1 \[ -\frac{b (c d-b e) \log (b+c x)}{c^3}+\frac{x (c d-b e)}{c^2}+\frac{e x^2}{2 c} \]
Antiderivative was successfully verified.
[In] Int[(x^2*(d + e*x))/(b*x + c*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{b \left (b e - c d\right ) \log{\left (b + c x \right )}}{c^{3}} - \left (b e - c d\right ) \int \frac{1}{c^{2}}\, dx + \frac{e \int x\, dx}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2*(e*x+d)/(c*x**2+b*x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0252057, size = 41, normalized size = 0.91 \[ \frac{c x (-2 b e+2 c d+c e x)+2 b (b e-c d) \log (b+c x)}{2 c^3} \]
Antiderivative was successfully verified.
[In] Integrate[(x^2*(d + e*x))/(b*x + c*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.003, size = 52, normalized size = 1.2 \[{\frac{e{x}^{2}}{2\,c}}-{\frac{bex}{{c}^{2}}}+{\frac{dx}{c}}+{\frac{{b}^{2}\ln \left ( cx+b \right ) e}{{c}^{3}}}-{\frac{b\ln \left ( cx+b \right ) d}{{c}^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2*(e*x+d)/(c*x^2+b*x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.704209, size = 62, normalized size = 1.38 \[ \frac{c e x^{2} + 2 \,{\left (c d - b e\right )} x}{2 \, c^{2}} - \frac{{\left (b c d - b^{2} e\right )} \log \left (c x + b\right )}{c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*x^2/(c*x^2 + b*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.277467, size = 63, normalized size = 1.4 \[ \frac{c^{2} e x^{2} + 2 \,{\left (c^{2} d - b c e\right )} x - 2 \,{\left (b c d - b^{2} e\right )} \log \left (c x + b\right )}{2 \, c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*x^2/(c*x^2 + b*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.3772, size = 37, normalized size = 0.82 \[ \frac{b \left (b e - c d\right ) \log{\left (b + c x \right )}}{c^{3}} + \frac{e x^{2}}{2 c} - \frac{x \left (b e - c d\right )}{c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2*(e*x+d)/(c*x**2+b*x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.268352, size = 66, normalized size = 1.47 \[ \frac{c x^{2} e + 2 \, c d x - 2 \, b x e}{2 \, c^{2}} - \frac{{\left (b c d - b^{2} e\right )}{\rm ln}\left ({\left | c x + b \right |}\right )}{c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*x^2/(c*x^2 + b*x),x, algorithm="giac")
[Out]